package com.atguigu.gmall.pms.vo;

import com.atguigu.gmall.pms.entity.SpuAttrValueEntity;
import io.jsonwebtoken.lang.Collections;
import org.apache.commons.lang3.StringUtils;

import java.util.List;

/**
 * @Author zhaoshuo
 * @ClassName BaseAttrVo
 * @Description
 */
public class BaseAttrVo extends SpuAttrValueEntity {
    public void setValueSelected(List<String> valueSelected) {
        if (!Collections.isEmpty(valueSelected)) {
            this.setAttrValue(StringUtils.join(valueSelected, ","));
        }
    }
}